3.7.79 \(\int \frac {b+2 c x^3}{x (b+c x^3)} \, dx\)

Optimal. Leaf size=15 \[ \frac {1}{3} \log \left (b+c x^3\right )+\log (x) \]

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 15, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {446, 72} \begin {gather*} \frac {1}{3} \log \left (b+c x^3\right )+\log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(b + 2*c*x^3)/(x*(b + c*x^3)),x]

[Out]

Log[x] + Log[b + c*x^3]/3

Rule 72

Int[((e_.) + (f_.)*(x_))^(p_.)/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Int[ExpandIntegrand[(
e + f*x)^p/((a + b*x)*(c + d*x)), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && IntegerQ[p]

Rule 446

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_Symbol] :> Dist[1/n, Subst[Int
[x^(Simplify[(m + 1)/n] - 1)*(a + b*x)^p*(c + d*x)^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p, q}, x] &&
 NeQ[b*c - a*d, 0] && IntegerQ[Simplify[(m + 1)/n]]

Rubi steps

\begin {align*} \int \frac {b+2 c x^3}{x \left (b+c x^3\right )} \, dx &=\frac {1}{3} \operatorname {Subst}\left (\int \frac {b+2 c x}{x (b+c x)} \, dx,x,x^3\right )\\ &=\frac {1}{3} \operatorname {Subst}\left (\int \left (\frac {1}{x}+\frac {c}{b+c x}\right ) \, dx,x,x^3\right )\\ &=\log (x)+\frac {1}{3} \log \left (b+c x^3\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 15, normalized size = 1.00 \begin {gather*} \frac {1}{3} \log \left (b+c x^3\right )+\log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(b + 2*c*x^3)/(x*(b + c*x^3)),x]

[Out]

Log[x] + Log[b + c*x^3]/3

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {b+2 c x^3}{x \left (b+c x^3\right )} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[(b + 2*c*x^3)/(x*(b + c*x^3)),x]

[Out]

IntegrateAlgebraic[(b + 2*c*x^3)/(x*(b + c*x^3)), x]

________________________________________________________________________________________

fricas [A]  time = 0.40, size = 13, normalized size = 0.87 \begin {gather*} \frac {1}{3} \, \log \left (c x^{3} + b\right ) + \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*x^3+b)/x/(c*x^3+b),x, algorithm="fricas")

[Out]

1/3*log(c*x^3 + b) + log(x)

________________________________________________________________________________________

giac [A]  time = 0.16, size = 15, normalized size = 1.00 \begin {gather*} \frac {1}{3} \, \log \left ({\left | c x^{3} + b \right |}\right ) + \log \left ({\left | x \right |}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*x^3+b)/x/(c*x^3+b),x, algorithm="giac")

[Out]

1/3*log(abs(c*x^3 + b)) + log(abs(x))

________________________________________________________________________________________

maple [A]  time = 0.05, size = 14, normalized size = 0.93 \begin {gather*} \ln \relax (x )+\frac {\ln \left (c \,x^{3}+b \right )}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((2*c*x^3+b)/x/(c*x^3+b),x)

[Out]

ln(x)+1/3*ln(c*x^3+b)

________________________________________________________________________________________

maxima [A]  time = 0.55, size = 17, normalized size = 1.13 \begin {gather*} \frac {1}{3} \, \log \left (c x^{3} + b\right ) + \frac {1}{3} \, \log \left (x^{3}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*x^3+b)/x/(c*x^3+b),x, algorithm="maxima")

[Out]

1/3*log(c*x^3 + b) + 1/3*log(x^3)

________________________________________________________________________________________

mupad [B]  time = 4.63, size = 13, normalized size = 0.87 \begin {gather*} \frac {\ln \left (c\,x^3+b\right )}{3}+\ln \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b + 2*c*x^3)/(x*(b + c*x^3)),x)

[Out]

log(b + c*x^3)/3 + log(x)

________________________________________________________________________________________

sympy [A]  time = 0.19, size = 12, normalized size = 0.80 \begin {gather*} \log {\relax (x )} + \frac {\log {\left (\frac {b}{c} + x^{3} \right )}}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*x**3+b)/x/(c*x**3+b),x)

[Out]

log(x) + log(b/c + x**3)/3

________________________________________________________________________________________